package com.codrim.cs.data.rpc.enums;

import com.codrim.common.utils.enums.EnumWithKeyDesc;

import java.io.Serializable;

/**
 * Created by Liang.Zhuge on 03/05/2017.
 */
public enum CooperatorsStatTraffic implements EnumWithKeyDesc<Short>, Serializable {
    Adv((short) 0, "advertiser_id"),
    Aff((short) 1, "affiliate_id"),
    All((short) 2, "all");

    final public Short key;
    final public String field;

    CooperatorsStatTraffic(Short key, String field) {
        this.key = key;
        this.field = field;
    }

    @Override
    public Short getKey() {
        return key;
    }

    @Override
    public String getDesc() {
        return field;
    }
}
